<div class="box box-info">
    <div class="box-header with-border" style="padding:15px;">
        @if($tabObj->isEmpty())
            <h3 class="box-title">
                {{ $form->title() }}
            </h3>
        @else
            <ul class="box-tabs nav-tabs">
                @foreach($tabObj->getTabs() as $tab)
                    <li {{ $tab['active'] ? 'class=active' : '' }}>
                        <a href="#tab-{{ $tab['id'] }}" data-toggle="tab">
                            {{ $tab['title'] }} <i class="fa fa-exclamation-circle text-red hide"></i>
                        </a>
                    </li>
                @endforeach
            </ul>
        @endif
        <div class="box-tools" style="top: 10px;">
            {!! $form->renderTools() !!}
        </div>
    </div>
    <!-- /.box-header -->
    <!-- form start -->
    {!! $form->open() !!}

    <div class="box-body" style="padding-top: 20px">

        @if(!$tabObj->isEmpty())
            @include('admin::form.tab', compact('tabObj'))
        @else
            <div class="fields-group">

                @if($form->hasRows())
                    @foreach($form->getRows() as $row)
                        {!! $row->render() !!}
                    @endforeach
                @else
                    @foreach($layout->columns() as $column)
                        <div class="col-md-{{ $column->width() }}">
                            @foreach($column->fields() as $field)
                                {!! $field->render() !!}
                            @endforeach
                        </div>
                    @endforeach
                @endif
            </div>
        @endif

    </div>
    <!-- /.box-body -->

    {!! $form->renderFooter() !!}

    @foreach($form->getHiddenFields() as $field)
        {!! $field->render() !!}
    @endforeach

    <!-- /.box-footer -->
    {!! $form->close() !!}
</div>

